package com.hhs.storage.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *
 * </p>
 *
 * @author hhs
 * @since 2023-03-03
 */
@Data
public class AttachmentList implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private String targetId;

    private String userId;

    private String name;
    private String url;
//    文件类型
    private String fileType;
    /**
     * 0-个人计划
     */
    private Integer type;
    /**
     * 附件的四个分类id
     */
    private String targetIdOne;
    private String targetIdTwo;
    private String targetIdThree;
    private String targetIdFour;
    private String targetIdFive;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private List<PermissionItem> permissionData=new ArrayList<>();
}
